package org.xliu.cs.openproject.codegenerator.restapi;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * 字段信息
 */
public class FieldInfo {
    @JsonProperty("name")
    private String name;
    
    @JsonProperty("type")
    private String type;
    
    @JsonProperty("required")
    private Boolean required;
    
    @JsonProperty("items")
    private FieldInfo items;

    public FieldInfo() {
    }

    // Getters and setters
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getRequired() {
        return required;
    }

    public void setRequired(Boolean required) {
        this.required = required;
    }

    public FieldInfo getItems() {
        return items;
    }

    public void setItems(FieldInfo items) {
        this.items = items;
    }
}